/****************************************************
	文件：AssetBundleConfig.cs
	作者：HuskyT
	邮箱：1005240602@qq.com
	日期：2020/9/4 14:5:7
	功能：AB包配置表（数据结构）
*****************************************************/

using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace HTFramework.ResKit
{
    /// <summary>
    /// AB包配置
    /// </summary>
    [Serializable]
    public class AssetBundleConfig
    {
        [XmlElement("ABDataList")]
        public List<ABData> ABDataList { get; set; }
    }

    /// <summary>
    /// AB包数据
    /// </summary>
    [Serializable]
    public class ABData
    {
        /// <summary>
        /// 资源路径
        /// </summary>
        [XmlAttribute("Path")]
        public string Path { get; set; }
        /// <summary>
        /// 资源路径对应的Crc，资源的唯一标识（精度低于MD5）
        /// </summary>
        [XmlAttribute("Crc")]
        public uint Crc { get; set; }
        /// <summary>
        /// AB包包名
        /// </summary>
        [XmlAttribute("ABName")]
        public string ABName { get; set; }
        /// <summary>
        /// 资源名（含后缀）
        /// </summary>
        [XmlAttribute("AssetName")]
        public string AssetName { get; set; }
        /// <summary>
        /// 依赖项的AB包名
        /// </summary>
        [XmlElement("ABDependencies")]
        public List<string> ABDependencyList { get; set; }
    }
}
